//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.itheima.pinda.authority.dto.core;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import org.hibernate.validator.constraints.Length;

@ApiModel(
        value = "StationSaveDTO",
        description = "岗位"
)
public class StationSaveDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("名称")
    @Length(
            max = 255,
            message = "名称长度不能超过255"
    )
    private String name;
    @ApiModelProperty("组织ID")
    private Long orgId;
    @ApiModelProperty("状态")
    private Boolean status;
    @ApiModelProperty("描述")
    @Length(
            max = 255,
            message = "描述长度不能超过255"
    )
    private String describe;

    public static StationSaveDTO.StationSaveDTOBuilder builder() {
        return new StationSaveDTO.StationSaveDTOBuilder();
    }

    public String getName() {
        return this.name;
    }

    public Long getOrgId() {
        return this.orgId;
    }

    public Boolean getStatus() {
        return this.status;
    }

    public String getDescribe() {
        return this.describe;
    }

    public StationSaveDTO setName(final String name) {
        this.name = name;
        return this;
    }

    public StationSaveDTO setOrgId(final Long orgId) {
        this.orgId = orgId;
        return this;
    }

    public StationSaveDTO setStatus(final Boolean status) {
        this.status = status;
        return this;
    }

    public StationSaveDTO setDescribe(final String describe) {
        this.describe = describe;
        return this;
    }

    public StationSaveDTO() {
    }

    public StationSaveDTO(final String name, final Long orgId, final Boolean status, final String describe) {
        this.name = name;
        this.orgId = orgId;
        this.status = status;
        this.describe = describe;
    }

    public String toString() {
        return "StationSaveDTO(super=" + super.toString() + ", name=" + this.getName() + ", orgId=" + this.getOrgId() + ", status=" + this.getStatus() + ", describe=" + this.getDescribe() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof StationSaveDTO)) {
            return false;
        } else {
            StationSaveDTO other = (StationSaveDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$name = this.getName();
                    Object other$name = other.getName();
                    if (this$name == null) {
                        if (other$name == null) {
                            break label59;
                        }
                    } else if (this$name.equals(other$name)) {
                        break label59;
                    }

                    return false;
                }

                Object this$orgId = this.getOrgId();
                Object other$orgId = other.getOrgId();
                if (this$orgId == null) {
                    if (other$orgId != null) {
                        return false;
                    }
                } else if (!this$orgId.equals(other$orgId)) {
                    return false;
                }

                Object this$status = this.getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }

                Object this$describe = this.getDescribe();
                Object other$describe = other.getDescribe();
                if (this$describe == null) {
                    if (other$describe != null) {
                        return false;
                    }
                } else if (!this$describe.equals(other$describe)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof StationSaveDTO;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $orgId = this.getOrgId();
        result = result * 59 + ($orgId == null ? 43 : $orgId.hashCode());
        Object $status = this.getStatus();
        result = result * 59 + ($status == null ? 43 : $status.hashCode());
        Object $describe = this.getDescribe();
        result = result * 59 + ($describe == null ? 43 : $describe.hashCode());
        return result;
    }

    public static class StationSaveDTOBuilder {
        private String name;
        private Long orgId;
        private Boolean status;
        private String describe;

        StationSaveDTOBuilder() {
        }

        public StationSaveDTO.StationSaveDTOBuilder name(final String name) {
            this.name = name;
            return this;
        }

        public StationSaveDTO.StationSaveDTOBuilder orgId(final Long orgId) {
            this.orgId = orgId;
            return this;
        }

        public StationSaveDTO.StationSaveDTOBuilder status(final Boolean status) {
            this.status = status;
            return this;
        }

        public StationSaveDTO.StationSaveDTOBuilder describe(final String describe) {
            this.describe = describe;
            return this;
        }

        public StationSaveDTO build() {
            return new StationSaveDTO(this.name, this.orgId, this.status, this.describe);
        }

        public String toString() {
            return "StationSaveDTO.StationSaveDTOBuilder(name=" + this.name + ", orgId=" + this.orgId + ", status=" + this.status + ", describe=" + this.describe + ")";
        }
    }
}
